home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c++
- Subject: Re: [Q] Inline gives "unresolved" in MSVC (Beginner)
- Date: Mon, 01 Jan 1996 15:00:25 GMT
- Organization: Netcom
- Message-ID: <30e7f6d8.51142080@nntp.ix.netcom.com>
- References: <4c7qt1$4lg@news.netvision.net.il>
- NNTP-Posting-Host: ix-dc6-02.ix.netcom.com
- X-NETCOM-Date: Mon Jan 01 6:59:46 AM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- Gregory Karpinsky <karpinsk@netvision.net.il> wrote:
-
- |>Hi!
- |>
- |>I've got a method declared in a .hpp and its body - in the
- |>corresponding .cpp. Everything works OK until I add the "inline"
- |>word to the method. Then I get linker error "unresolved...<my
- method>.
- |>I'm using MSVC 1.52
-
- The definition (i.e., the body) of an inline function must be
- available in every compilation unit that uses it. Put the definition
- in the header.
-
-
- Michael M Rubenstein
-